//
//  ScheduleMemberListCell.m
//  YunDongAdmin
//
//  Created by lqq on 2018/9/14.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "ScheduleMemberListCell.h"

@interface ScheduleMemberListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *avaterImageView;
@property (weak, nonatomic) IBOutlet UILabel *coachNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *memberNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *planDateLabel;

@end

@implementation ScheduleMemberListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _avaterImageView.layer.cornerRadius = 4;
    _avaterImageView.layer.masksToBounds = YES;
    [self.contentView addBottomLineViewWithLeftSpace:0 rightSpace:0];
}

- (void)setScheduleMemberDTO:(M_ScheduleMemberDTO *)scheduleMemberDTO
{
    _scheduleMemberDTO = scheduleMemberDTO;
    [_avaterImageView setAvaterImageWithUrl:scheduleMemberDTO.coachInfo.avatarUrl];
    _coachNameLabel.text = scheduleMemberDTO.coachInfo.coachName;
    _memberNameLabel.text = [NSString stringWithFormat:@"会员：%@  %@",scheduleMemberDTO.member.memberName,scheduleMemberDTO.planRemark];
    _planDateLabel.text = scheduleMemberDTO.timeStr;
}



@end
